var socket = new WebSocket('wss://10.75.30.130:3000');

$('#btnSend').on('click',()=>{
    if(socket.readyState==1){
        socket.send(JSON.stringify({
            token:Token,
            content:$('#txtSend').val()
        }));
    }
})

socket.addEventListener('close', (err)=> {
    console.log(err)
});
socket.addEventListener('message', (event)=> {
    console.log(event.data);
});


